package com.example.eurekaclient.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhiqiang
 */
@RestController
@RequestMapping("/zhiqiang")
@RequiredArgsConstructor
public class RibbonControllerTest {

    /**
     * 获取帅哥
     *
     * @return
     */
    @RequestMapping("/getName")
    public String getName(@RequestHeader("name") String name,
                          @RequestHeader("age") String age,
                          String sex) {
        System.out.println("姓名:"+name+"年龄:"+age+"性别："+sex);
        return "HandSomenQiang";
    }

}
